<script setup>
import { onMounted, ref, reactive } from 'vue'
// import { useRouter } from 'vue-router';

// const router = useRouter()

// console.log(import.meta.env.BASE_URL)

const activeKey = ref(0)


//import { RouterLink, RouterView } from 'vue-router'
// import HelloWorld from './components/HelloWorld.vue'


// import { onMounted } from 'vue'
// function savetoken() {
//   // 保存token
//   localStorage.setItem('token', 'hdhsdsdsiweiwjijwei@sada')
//   localStorage.setItem('admin', 'admin')
//   // console.log('获取token',localStorage.getItem('token'))
//   // console.log('获取token',localStorage.getItem('admin'))
// }

// onMounted(savetoken);
</script>

<template>
  <RouterView />
  
  <van-tabbar v-model="activeKey">
    <van-tabbar-item to="/" icon="gold-coin" :key="0">充值</van-tabbar-item>
    <van-tabbar-item to="/service" icon="service" :key="1">客服</van-tabbar-item>
    <van-tabbar-item replace to="/me" icon="user" :key="2">我的</van-tabbar-item>
  </van-tabbar>
  <div style="height: var(--van-tabbar-height);"></div>
  <div class="van-safe-area-bottom"></div>
</template>
